Optimal. Leaf size=140 \[ -\frac{2 (b e-a f) (a d f-2 b c f+b d e)}{f^2 \sqrt{e+f x} (d e-c f)^2}+\frac{2 (b e-a f)^2}{3 f^2 (e+f x)^{3/2} (d e-c f)}-\frac{2 (b c-a d)^2 \tanh ^{-1}\left (\frac{\sqrt{d} \sqrt{e+f x}}{\sqrt{d e-c f}}\right )}{\sqrt{d} (d e-c f)^{5/2}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.361286, antiderivative size = 140, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125 \[ -\frac{2 (b e-a f) (a d f-2 b c f+b d e)}{f^2 \sqrt{e+f x} (d e-c f)^2}+\frac{2 (b e-a f)^2}{3 f^2 (e+f x)^{3/2} (d e-c f)}-\frac{2 (b c-a d)^2 \tanh ^{-1}\left (\frac{\sqrt{d} \sqrt{e+f x}}{\sqrt{d e-c f}}\right )}{\sqrt{d} (d e-c f)^{5/2}} \]
Antiderivative was successfully verified.
[In] Int[(a + b*x)^2/((c + d*x)*(e + f*x)^(5/2)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 70.269, size = 126, normalized size = 0.9 \[ \frac{2 \left (a f - b e\right ) \left (a d f - 2 b c f + b d e\right )}{f^{2} \sqrt{e + f x} \left (c f - d e\right )^{2}} - \frac{2 \left (a f - b e\right )^{2}}{3 f^{2} \left (e + f x\right )^{\frac{3}{2}} \left (c f - d e\right )} + \frac{2 \left (a d - b c\right )^{2} \operatorname{atan}{\left (\frac{\sqrt{d} \sqrt{e + f x}}{\sqrt{c f - d e}} \right )}}{\sqrt{d} \left (c f - d e\right )^{\frac{5}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x+a)**2/(d*x+c)/(f*x+e)**(5/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.397636, size = 140, normalized size = 1. \[ -\frac{2 (b e-a f) (a d f-2 b c f+b d e)}{f^2 \sqrt{e+f x} (d e-c f)^2}-\frac{2 (b e-a f)^2}{3 f^2 (e+f x)^{3/2} (c f-d e)}-\frac{2 (b c-a d)^2 \tanh ^{-1}\left (\frac{\sqrt{d} \sqrt{e+f x}}{\sqrt{d e-c f}}\right )}{\sqrt{d} (d e-c f)^{5/2}} \]
Antiderivative was successfully verified.
[In] Integrate[(a + b*x)^2/((c + d*x)*(e + f*x)^(5/2)),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.023, size = 332, normalized size = 2.4 \[ -{\frac{2\,{a}^{2}}{3\,cf-3\,de} \left ( fx+e \right ) ^{-{\frac{3}{2}}}}+{\frac{4\,abe}{3\, \left ( cf-de \right ) f} \left ( fx+e \right ) ^{-{\frac{3}{2}}}}-{\frac{2\,{b}^{2}{e}^{2}}{3\,{f}^{2} \left ( cf-de \right ) } \left ( fx+e \right ) ^{-{\frac{3}{2}}}}+2\,{\frac{{a}^{2}d}{ \left ( cf-de \right ) ^{2}\sqrt{fx+e}}}-4\,{\frac{abc}{ \left ( cf-de \right ) ^{2}\sqrt{fx+e}}}+4\,{\frac{ce{b}^{2}}{f \left ( cf-de \right ) ^{2}\sqrt{fx+e}}}-2\,{\frac{{b}^{2}d{e}^{2}}{{f}^{2} \left ( cf-de \right ) ^{2}\sqrt{fx+e}}}+2\,{\frac{{a}^{2}{d}^{2}}{ \left ( cf-de \right ) ^{2}\sqrt{ \left ( cf-de \right ) d}}\arctan \left ({\frac{\sqrt{fx+e}d}{\sqrt{ \left ( cf-de \right ) d}}} \right ) }-4\,{\frac{abcd}{ \left ( cf-de \right ) ^{2}\sqrt{ \left ( cf-de \right ) d}}\arctan \left ({\frac{\sqrt{fx+e}d}{\sqrt{ \left ( cf-de \right ) d}}} \right ) }+2\,{\frac{{b}^{2}{c}^{2}}{ \left ( cf-de \right ) ^{2}\sqrt{ \left ( cf-de \right ) d}}\arctan \left ({\frac{\sqrt{fx+e}d}{\sqrt{ \left ( cf-de \right ) d}}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x+a)^2/(d*x+c)/(f*x+e)^(5/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^2/((d*x + c)*(f*x + e)^(5/2)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.231493, size = 1, normalized size = 0.01 \[ \left [\frac{3 \,{\left ({\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} f^{3} x +{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} e f^{2}\right )} \sqrt{f x + e} \log \left (\frac{\sqrt{d^{2} e - c d f}{\left (d f x + 2 \, d e - c f\right )} - 2 \,{\left (d^{2} e - c d f\right )} \sqrt{f x + e}}{d x + c}\right ) - 2 \,{\left (2 \, b^{2} d e^{3} + a^{2} c f^{3} -{\left (5 \, b^{2} c - 2 \, a b d\right )} e^{2} f + 4 \,{\left (a b c - a^{2} d\right )} e f^{2} + 3 \,{\left (b^{2} d e^{2} f - 2 \, b^{2} c e f^{2} +{\left (2 \, a b c - a^{2} d\right )} f^{3}\right )} x\right )} \sqrt{d^{2} e - c d f}}{3 \,{\left (d^{2} e^{3} f^{2} - 2 \, c d e^{2} f^{3} + c^{2} e f^{4} +{\left (d^{2} e^{2} f^{3} - 2 \, c d e f^{4} + c^{2} f^{5}\right )} x\right )} \sqrt{d^{2} e - c d f} \sqrt{f x + e}}, -\frac{2 \,{\left (3 \,{\left ({\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} f^{3} x +{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} e f^{2}\right )} \sqrt{f x + e} \arctan \left (-\frac{d e - c f}{\sqrt{-d^{2} e + c d f} \sqrt{f x + e}}\right ) +{\left (2 \, b^{2} d e^{3} + a^{2} c f^{3} -{\left (5 \, b^{2} c - 2 \, a b d\right )} e^{2} f + 4 \,{\left (a b c - a^{2} d\right )} e f^{2} + 3 \,{\left (b^{2} d e^{2} f - 2 \, b^{2} c e f^{2} +{\left (2 \, a b c - a^{2} d\right )} f^{3}\right )} x\right )} \sqrt{-d^{2} e + c d f}\right )}}{3 \,{\left (d^{2} e^{3} f^{2} - 2 \, c d e^{2} f^{3} + c^{2} e f^{4} +{\left (d^{2} e^{2} f^{3} - 2 \, c d e f^{4} + c^{2} f^{5}\right )} x\right )} \sqrt{-d^{2} e + c d f} \sqrt{f x + e}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^2/((d*x + c)*(f*x + e)^(5/2)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x+a)**2/(d*x+c)/(f*x+e)**(5/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.220839, size = 319, normalized size = 2.28 \[ \frac{2 \,{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} \arctan \left (\frac{\sqrt{f x + e} d}{\sqrt{c d f - d^{2} e}}\right )}{{\left (c^{2} f^{2} - 2 \, c d f e + d^{2} e^{2}\right )} \sqrt{c d f - d^{2} e}} - \frac{2 \,{\left (6 \,{\left (f x + e\right )} a b c f^{2} - 3 \,{\left (f x + e\right )} a^{2} d f^{2} + a^{2} c f^{3} - 6 \,{\left (f x + e\right )} b^{2} c f e - 2 \, a b c f^{2} e - a^{2} d f^{2} e + 3 \,{\left (f x + e\right )} b^{2} d e^{2} + b^{2} c f e^{2} + 2 \, a b d f e^{2} - b^{2} d e^{3}\right )}}{3 \,{\left (c^{2} f^{4} - 2 \, c d f^{3} e + d^{2} f^{2} e^{2}\right )}{\left (f x + e\right )}^{\frac{3}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^2/((d*x + c)*(f*x + e)^(5/2)),x, algorithm="giac")
[Out]